<template>
	<view class="contain">
		<view class="img">
			<image src="../../static/logo.png" style="width: 160rpx;height: 160rpx;margin-bottom: 40rpx;"></image></br>
			<image src="../../static/huanying.jpg" style="width: 300rpx;height: 100rpx;"></image>
		</view>
		<!-- <view class="t-b">
			
			欢迎使用朝阳宝贝
		</view> -->
	</view>
</template>

<script>
	export default {
		data(){
			return {
				
			}
		},
		onLoad(op){
			console.log('opssssss',op)
			if (JSON.stringify(this.$util.getUser()) != '{}' &&op.loginType==uni.getStorageSync('loginType')) {
				uni.switchTab({
					url: '../tabbar/index/index'
				})
			} else {
				uni.navigateTo({
					url: 'index'
				})
			}
			uni.setStorageSync('loginType', op.loginType)
		},
		methods:{
			
		}
	}
</script>
<style>
	page{
		background-color: #fff!important;
	}
</style>
<style lang="less" scoped>
	.contain{
		background-color: #fff;
		width: 100%;
		height: 100%;
		.img{
			margin: 200px auto;
			text-align: center;
		}
	}
</style>